﻿@using Webdiyer.WebControls.Mvc;
@using ChiDao.Component.Utils;
@model PagedList<ChiDao.Site.Models.OrgView>
@{
    ViewBag.Title = "机构管理";
    Layout = "~/Views/Shared/_BaseLayout.cshtml";
}

<h2>机构管理</h2>
@section example
{
    <table>
        <tr>
            <th>ID</th>
            <th>OrgNo</th>
            <th>OrgName</th>
            <th>IsDeleted</th>
            <th>AddDate</th>
            <th>PID</th>
        </tr>

        @foreach (var item in Model)
        {
            <tr>
                <td>@Html.DisplayFor(modelItem => item.ID)</td>
                <td>@Html.DisplayFor(modelItem => item.OrgNo)</td>
                <td>@Html.DisplayFor(modelItem => item.OrgName)</td>
                <td>@Html.DisplayFor(modelItem => item.IsDeleted)</td>
                <td>@Html.DisplayFor(modelItem => item.AddDate)</td>
                <td style="text-align: center;">
                    @Html.DisplayFor(modelItem => item.PID)
                </td>
            </tr>
        }
    </table>
    @Html.Pager(Model, new PagerOptions
{
    PageIndexParameterName = "id"
})
    <br />
    @DateTime.Now
}